﻿
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> JavaScript 词条列表_慕课网WIKI</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
<meta property="qc:admins" content="77103107776157736375" />
<meta property="wb:webmaster" content="c4f857219bfae3cb" />
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
<meta http-equiv="Cache-Control" content="no-transform " />
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' *.imooc.com *.mukewang.com *.baidu.com *.sina.com.cn *.bootcss.com">
<meta name="Keywords" content="JavaScript,WIKI,手册,编程,知识点,慕课网,imooc" />
<meta name="Description" content="JAVASCRIPT" />

    <meta name=”renderer” content=”webkit”>
    <meta name="viewport" content="width=device-width,target-densitydpi=high-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes"/>







<link rel="stylesheet" href="css/moco.min_1.css" type="text/css" />

<script type="text/javascript">

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('!4(){3 6=a;3 l=4(){3 b,e=9 y("(^| )"+"c=([^;]*)(;|$)");j(b=h.g.z(e)){k w(b[2])}x{k a}};3 8=4(t){3 f=l();3 7=9 o();7.A(7.d()+B*i*i*r);h.g="c="+t+";s="+7.M()+";N=/;L=O.m";j(t&&t!=f){Q.P.G()}};3 5=9 E();5.H=4(){K(6);6=a;8(0)};5.J=4(){8(1)};6=I(4(){5.n="";8(1)},F);5.n=\'R://p.u.m/p/v/q/D.C?t=\'+9 o().d()}()',54,54,'|||var|function|imgobj|timer|exp|setcookie|new|null|arr|IMCDNS|getTime|reg|_0|cookie|document|60|if|return|getcookie|com|src|Date|static|common|1000|expires||mukewang|img|unescape|else|RegExp|match|setTime|24|png|logo|Image|3000|reload|onload|setTimeout|onerror|clearTimeout|domain|toGMTString|path|imooc|location|window|http'.split('|'),0,{}))

</script>


<script type="text/javascript">

var OP_CONFIG={"module":"wiki","page":"category"};
var isLogin = 0;
var is_choice = "";
var seajsTimestamp="v=201705081743";
var _msg_unread = 0; 
var _not_unread = 0; 
var _cart_num = 0;
</script>




    
    <script type="text/javascript">var tdata=[{"id":"114","pid":"6","name":"JS \u57fa\u7840","description":null,"icon_color":null,"icon":null,"skill_id":"0","child":[]},{"id":"117","pid":"6","name":"JS HTML DOM","description":null,"icon_color":null,"icon":null,"skill_id":"0","child":[]},{"id":"120","pid":"6","name":"JS \u5bf9\u8c61","description":null,"icon_color":null,"icon":null,"skill_id":"0","child":[]},{"id":"123","pid":"6","name":"JS Window","description":null,"icon_color":null,"icon":null,"skill_id":"0","child":[]},{"id":"126","pid":"6","name":"JS \u6807\u51c6\u5e93","description":null,"icon_color":null,"icon":null,"skill_id":"0","child":[]}],_pid=6,cid=6</script>

<link rel="stylesheet" href="css/ec1dcfdc693344709e934d8f927a35b2.css" type="text/css" />
</head>
<body >

<div id="header">
    <div class="page-container" id="nav">
        <div id="logo" class="logo"><a href="/" target="_self" class="hide-text" title="首页">慕课网</a></div>


        <button type="button" class="navbar-toggle visible-xs-block js-show-menu" >
            <i class="icon-menu"></i>
        </button>
        <ul class="nav-item">
                        <li class="set-btn visible-xs-block"><a href="/user/newlogin" target="_self">登录</a> / <a href="/user/newsignup" target="_self">注册</a></li>
                        
            <li>
                <a href="/course/list"  target="_self">课程</a>
            </li>
            <li><a href="http://class.imooc.com" class="program-nav " target="_self">职业路径<i class="icn-new"></i></a></li>
            <li>
                <a href="http://coding.imooc.com" target="_self">实战</a>
            </li>
            <li><a href="/wenda"  target="_self">猿问</a></li>
            <li><a href="/article"  target="_self">手记</a></li>
            
        </ul>
                <div id="login-area">
            <ul class="header-unlogin clearfix">
                <li class="shop-cart" id="shop-cart">
                    <a href="http://order.imooc.com/pay/cart" class="shop-cart-icon" target="_blank">
                        <span class="icon-shopping-cart js-endcart"></span>
                        <span class="shopping_icon js-cart-num" data-ordernum="0"  data-cartnum="0" style='display: none'>0</span>
                        <span>购物车</span>
                    </a>
                    <div class="my-cart" id="js-my-cart"></div>
                </li>
                <li class="header-signin">
                    <a href="#" id="js-signin-btn">登录</a>
                </li>
                <li class="header-signup">
                    <a href="#" id="js-signup-btn">注册</a>
                </li>
            </ul>
        </div>
                <div class='search-warp clearfix' style='min-width: 32px; height: 60px;'>
                            <div class="pa searchTags" >
                                    <a href="http://class.imooc.com/sc/20" target="_blank">前端小白</a>
                                    <a href="http://class.imooc.com/sc/22" target="_blank">PHP入门</a>
                                </div>
            
            <div class="search-area" data-search="top-banner">
                <input class="search-input" data-suggest-trigger="suggest-trigger"      type="text" autocomplete="off">
                <input type='hidden' class='btn_search' data-search-btn="search-btn" />
                <ul class="search-area-result" data-suggest-result="suggest-result">
                </ul>
            </div>
            <div class='showhide-search' data-show='no'><i class='icon-search'></i></div>
        </div>
    </div>
</div>

<div class="bindHintBox js-bindHintBox hide">
    <div class="pr">
        为了账号安全，请及时绑定邮箱和手机<a href="/user/setbindsns" class="ml20 color-red" target="_blank">立即绑定</a>
        <button  class="closeBindHint js-closeBindHint" type="button"></button>
        <div class="arrow"> </div>
    </div>
</div>


<div id="main">

    <div class="category_warp">
        <div class="header_warp">
            <div class="header_box">
                <div class="icon_bg" style="background-color: #f791c3">
                    <a class="icon_warp">
                        <img class="cg_icon" src="picture/5696fb8e0001a92102400240-60-60.jpg">
                    </a>
                </div>
                <div class="text">
                    <a class="category_name">JavaScript</a>
                    <p class="category_desc">JAVASCRIPT</p>
                                    </div>
            </div>
        </div>
        <div class="category clearfix">
            <div class="ca_list l">
                <ul class="list_warp">
                                                                        <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3915">JS数据间的计算法则——运算符</a>
                                <p class="content">&nbsp; &nbsp; 在JavaScript程序中，要完成各种各样运算是离不开运算符的，运算符用于将一个或几个值进行运算，而得出运算的结果。&nbsp; &nbsp; 在JavaScript中，按照运算类型，可以分为：算数运算符、比较运算符、赋值运算符、逻辑运算符和条件运算符。1、算数运算符JavaScript中提供的算数运算符有：+ &nbsp;、 &nbsp;- &nbsp;、 &nbs...</p>
                                <span class="date">2016-03-14</span>
                            </li>
                                                    <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3899">innerHTML</a>
                                <p class="content">定义和用法innerHTML 属性设置或返回表格行的开始和结束标签之间的 HTML。下面的例子返回了表格行的 inner HTML：function&nbsp;getInnerHTML()&nbsp;&nbsp;{&nbsp;&nbsp;alert(document.getElementById("tr1").innerHTML);&nbsp;&nbsp;}Firstna...</p>
                                <span class="date">2016-03-04</span>
                            </li>
                                                    <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3707">AngularJS 包含</a>
                                <p class="content">AngularJS&nbsp;包含在 AngularJS 中，你可以在 HTML 中包含 HTML 文件。在 HTML 中包含 HTML 文件在 HTML 中，目前还不支持包含 HTML 文件的功能。服务端包含大多服务端脚本都支持包含文件功能 (SSI： Server Side Includes)。使用 SSI, 你可在 HTML 中包含 HTML 文件，并发送到客户端浏览器。PHP 实例客户端包...</p>
                                <span class="date">2016-01-28</span>
                            </li>
                                                    <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3705">AngularJS Bootstrap</a>
                                <p class="content">AngularJS 的首选样式表是 Twitter Bootstrap， Twitter Bootstrap 是目前最受欢迎的前端框架。查看 Bootstrap教程。Bootstrap你可以在你的 AngularJS 应用中加入 Twitter Bootstrap，你可以在你的 元素中添加如下代码:如果站点在国内，建议使用百度静态资源库的Bootstrap，代码如下：以下是一个完整的 HTML 实...</p>
                                <span class="date">2016-01-28</span>
                            </li>
                                                    <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3703">AngularJS API</a>
                                <p class="content">API 意为&nbsp;Application&nbsp;Programming&nbsp;Interface（应用程序编程接口）。AngularJS 全局 APIAngularJS 全局 API 用于执行常见任务的 JavaScript 函数集合，如：比较对象迭代对象转换对象全局 API 函数使用 angular 对象进行访问。以下列出了一些通用的 API 函数：API描述angular.low...</p>
                                <span class="date">2016-01-28</span>
                            </li>
                                                    <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3701">AngularJS 输入验证</a>
                                <p class="content">AngularJS 表单和控件可以验证输入的数据。输入验证在前面的几个章节中，你已经学到关于 AngularJS 表单和控件的知识。AngularJS 表单和控件可以提供验证功能，并对用户输入的非法数据进行警告。客户端的验证不能确保用户输入数据的安全，所以服务端的数据验证也是必须的。应用代码Validation Example用户名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n...</p>
                                <span class="date">2016-01-28</span>
                            </li>
                                                    <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3699">AngularJS 表单</a>
                                <p class="content">AngularJS 表单是输入控件的集合。HTML 控件以下 HTML input 元素被称为 HTML 控件:input 元素select 元素button 元素textarea 元素HTML 表单HTML 表单通常与 HTML 控件同时存在。AngularJS 表单实例First Name:Last Name:&nbsp;RESETform = {"firstName":"John","las...</p>
                                <span class="date">2016-01-28</span>
                            </li>
                                                    <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3697">AngularJS 模块</a>
                                <p class="content">模块定义了一个应用程序。模块是应用程序中不同部分的容器。模块是应用控制器的容器。控制器通常属于一个模块。创建模块你可以通过 AngularJS 的&nbsp;angular.module&nbsp;函数来创建模块：...var&nbsp;app = angular.module("myApp", []);&nbsp;"myApp" 参数对应执行应用的 HTML 元素。现在你可以在 AngularJ...</p>
                                <span class="date">2016-01-28</span>
                            </li>
                                                    <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3695">AngularJS 的剪贴板扩展 ngClip</a>
                                <p class="content">ngClip 是一个 AngularJS 的扩展指令，封装了 ZeroClipboard 实现了拷贝到剪贴板的功能。示例代码：.config([&#39;ngClipProvider&#39;,&nbsp;function(ngClipProvider)&nbsp;{&nbsp;&nbsp;ngClipProvider.setPath("bower_components/zeroclipboar...</p>
                                <span class="date">2016-01-28</span>
                            </li>
                                                    <li>
                                <a class="title" target="_blank" href="/wiki/detail/id/3693">AngularJS 事件</a>
                                <p class="content">AngularJS 有自己的 HTML 事件指令。ng-click 指令ng-click&nbsp;指令定义了 AngularJS 点击事件。AngularJS 实例点我！{{ count }}隐藏 HTML 元素ng-hide&nbsp;指令用于设置应用部分是否可见。ng-hide="true"&nbsp;设置 HTML 元素不可见。ng-hide="false"&nbsp;设置 HTML 元素...</p>
                                <span class="date">2016-01-28</span>
                            </li>
                                                            </ul>
                
            </div>
            <div class="ca_tree r">
                <a class="back_f_level active" title="JavaScript" href="/wiki/category/cid/6">
                    <span class="left_arrow "></span>JavaScript</a>
                <ul class="tree" data-id="6">

                </ul>
            </div>
        </div>
    </div>

</div>

<div id="footer" >
    <div class="waper">
        <div class="footerwaper clearfix">
            <div class="followus r">
                <a class="followus-weixin" href="javascript:;"  target="_blank" title="微信">
                    <div class="flw-weixin-box"></div>
                </a>
                <a class="followus-weibo" href="http://weibo.com/u/3306361973"  target="_blank" title="新浪微博"></a>
                <a class="followus-qzone" href="http://user.qzone.qq.com/1059809142/" target="_blank" title="QQ空间"></a>
            </div>
            <div class="footer_intro l">
                <div class="footer_link">
                    <ul>
                        <li><a href="http://www.imooc.com/" target="_blank">网站首页</a></li>
                        <li><a href="/about/cooperate" target="_blank" title="企业合作">企业合作</a></li>
                        <li><a href="/about/job" target="_blank">人才招聘</a></li>
                        <li> <a href="/about/contact" target="_blank">联系我们</a></li>
                        <li> <a href="/about/recruit" target="_blank">讲师招募</a></li>
                        <li> <a href="/about/faq" target="_blank">常见问题</a></li>
                        <li> <a href="/user/feedback" target="_blank">意见反馈</a></li>
                        <li><a href="http://daxue.imooc.com/" target="_blank">慕课大学</a></li>
                        <li> <a href="/about/friendly" target="_blank">友情链接</a></li>
                       <!--  <li><a href="/corp/index" target="_blank">合作专区</a></li>
                        <li><a href="/about/us" target="_blank">关于我们</a></li> -->
                    </ul>
                </div>
                <p>Copyright © 2017 imooc.com All Rights Reserved | 京ICP备 13046642号-2</p>
            </div>
        </div>
    </div>
</div>


<div id="J_GotoTop" class="elevator">

    <a href="/user/feedback" class="elevator-msg" target="_blank">
        <i class="icon-feedback"></i>
        <span class="">意见反馈</span>
    </a>
    <a href="/about/faq" class="elevator-faq" target="_blank">
        <i class="icon-ques"></i>
        <span class="">常见问题</span>
    </a>
    <a href="http://www.imooc.com/mobile/app" target="_blank" class="elevator-app" >
        <i class="icon-appdownload"></i>
        <span class="">APP下载</span>
        <div class="elevator-app-box"></div>
    </a>
    <a href="javascript:void(0)" class="elevator-weixin no-goto" id="js-elevator-weixin" >
        <i class="icon-wxgzh"></i>
        <span class="">官方微信</span>
        <div class="elevator-weixin-box"></div>
    </a>
    <a href="javascript:void(0)" class="elevator-top no-goto" style="display:none" id="backTop">
        <i class="icon-up2"></i>
        <span class="">返回顶部</span>
    </a>
</div>



<!--script-->
<script src="js/ssologin.js"></script>
<script type="text/javascript" src="js/sea.js"></script>
<script type="text/javascript" src="js/sea_config.js"></script>
<script type="text/javascript">seajs.use("/static/page/"+OP_CONFIG.module+"/"+OP_CONFIG.page);</script>





<div style="display: none">
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ff0cfcccd7b1393990c78efdeebff3968' type='text/javascript'%3E%3C/script%3E"));
(function (d) {
window.bd_cpro_rtid="rHT4P1c";
var s = d.createElement("script");s.type = "text/javascript";s.async = true;s.src = location.protocol + "//cpro.baidu.com/cpro/ui/rt.js";
var s0 = d.getElementsByTagName("script")[0];s0.parentNode.insertBefore(s, s0);
})(document);
</script>
<script>
(function(){
    var bp = document.createElement('script');
    bp.src = '//push.zhanzhang.baidu.com/push.js';
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
</div>
</body>
</html>
